package org.dromara.mall.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.mall.domain.MallGoods;
import org.dromara.mall.domain.bo.GoodsBo;
import org.dromara.mall.domain.vo.GoodsVo;

import java.util.List;

/**
 * 商品列表Mapper接口
 *
 * @author Lion Li
 * @date 2024-05-21
 */
@Mapper
public interface MallGoodsMapper extends BaseMapperPlus<MallGoods, MallGoods> {
    /*查询分页*/
    Page<GoodsVo> queryPageList(@Param("page") Page<GoodsVo> page, @Param("bo") GoodsBo bo);

    /*根据ID查询商品详情3*/
    GoodsVo queryById(Long id);
    /*根据ID查询商品详情1*/
    GoodsVo queryGoodsDetailById(Long id);

}
